import http from '../utils/http'

/**
 * @description 查询所有文章
 * @param {*}
 */
export const reqArticleTable=(type,user_id)=>{
  return http.get(`/articleTable/articleTableList`,{'type':type,'user_id':user_id})
}

/**
 * @description 查看是否收藏
 * @param {*}
 */
export const reqArticlestatus=(userid)=>{
  return http.get(`/articleCollection/articlestatus`,{'userid':userid})
}

/**
 * 文章收藏，取消
 */
export const reqartall=(userid,articleid)=>{
  return http.get(`/articleCollection/artall`,{'userid':userid,'articleid':articleid})
}
/**
 * @description 查看详情
 * @param {*} articleid 
 */
export const reqArticleid=(articleid)=>{
  return http.get(`/articleTable/articleid`,{'articleid':articleid})
}